# frozen_string_literal: true

class ChangeMessagesUserIdToUserIdentifier < ActiveRecord::Migration[5.1]
  def change
    change_column :messages, :user_id, :string
    # Ex:- change_column("admin_users", "email", :string, :limit =>25)
    rename_column :messages, :user_id, :user_identifier
    # Ex:- rename_column("admin_users", "pasword","hashed_pasword")
  end
end
